package br.unirio.webdisco.dao.conn;

import br.unirio.webdisco.dao.impl.DNAPostgresDAO;
import br.unirio.webdisco.dao.impl.PesquisaPostgresDAO;
import br.unirio.webdisco.dao.impl.UsuarioPostgresDAO;
import br.unirio.webdisco.dao.impl.DoencaPostgresDAO;
import br.unirio.webdisco.entity.DNA;
import br.unirio.webdisco.entity.Pesquisa;
import br.unirio.webdisco.entity.Usuario;
import br.unirio.webdisco.entity.Doenca;



public class DAOFactory 
{
	private static DAOFactory _instance = null;

	private DAOFactory(){}

	public static DAOFactory getInstance() {
		if (_instance == null) {
			_instance = new DAOFactory();
		}
		return _instance;
	}
	
	public BasePostgresDAO<Usuario> getUsuarioDAO(){
		return new UsuarioPostgresDAO();
	}
	
	public BasePostgresDAO<Pesquisa> getPesquisaDAO(){
		return new PesquisaPostgresDAO();
	}
	
	public BasePostgresDAO<DNA> getDNADAO(){
		return new DNAPostgresDAO();
	}
	
	public BasePostgresDAO<Doenca> getDoencaDAO(){
		return new DoencaPostgresDAO();
	}
}
